<template>
  <div class="Header">
    <div class="header">
      <img class="logo_btn" src="/src/assets/image/noLogLogo.png" @click="$router.push('/home')">
      <img class="logo_btn_fl" src="/src/assets/image/fenlei.png" @click="$router.push('/home')">
      <div class="search input_deep">
        <el-input v-model="state.value" class="search_input" placeholder="Введите название товара"></el-input>
        <div class="search_btn">
          <el-button type="primary" class="search_btn_text" @click="$router.push('/Search_list')">
            <template v-slot:icon>
              <img class="search_icon" src="/src/assets/image/search.png">
            </template>
            Поиск
          </el-button>
        </div>
      </div>
    </div>

  </div>
</template>

<script lang="ts" name="Home" setup>
import {ref, reactive} from "vue";
import {Delete, Edit, Search, Share, Upload} from '@element-plus/icons-vue'
import {useRouter} from 'vue-router'

const state = reactive({
  value: ''
})
</script>
<script lang="ts">
export default {
  name: 'Home'
}
</script>

<style lang="less" scoped>
.Header {
  //width: 1920px;
  height: 130px;
  box-sizing: border-box;
  //padding-bottom: 29px;
  padding: 15px 260px;
  background: linear-gradient(90deg, #96FFF2 2%, #0070E9 41%);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


.logo_btn {
  width: 200px;
  height: 100px;
  margin-left: 80px;
  cursor: pointer;
}

.logo_btn_fl {
  width: 56px;
  height: 56px;
  margin: 0 25px 0 40px;
  cursor: pointer;
}

.search {
  top: 31px;
  left: 488px;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 20px;
  //border: 1px solid #2C5AA7;
  background: #FFFFFF;
  flex: 1;
  :deep(.el-input__wrapper) {
    box-shadow: none;
  }

  .search_input {
    margin-left: 24px;
    flex: 1;
    height: 100%;
  }

  .search_btn {
    margin-right: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;

    .phone_img {
      width: 32px;
      height: 32px;
      top: 11px;
      left: 576px;

      cursor: pointer;
    }

    .search_icon {
      width: 24px;
      height: 24px;
    }

    .search_btn_text {
      width: 140px;
      height: 44px;
      top: 5px;
      left: 628px;
      gap: 10px;
      border-radius: 16px;
      margin-left: 20px;
      background: #0070E9;
      color: #FFFFFF;
      font-weight: 600;
      font-size: 16px;
    }

  }
}

.button {
  width: Hug (506px)px;
  height: 54px;
  top: 39px;
  left: 1311px;
  gap: 47px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-left: 50px;
  font-size: 14px;
  color: #FFFFFF;
  text-wrap: nowrap;

  div {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;

    .button_tips {
      position: absolute;
      top: -8px;
      right: 12px;
      width: 20px;
      height: 20px;
      background: #F83C57;
      border-radius: 24px 24px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
    }

    img {
      width: 32px;
      height: 32px;
      margin-bottom: 5px;
    }
  }
}

.header_title {
  width: Hug (346px)px;
  height: Hug (32px)px;
  top: 97px;
  left: 80px;
  padding: 28px 0px 16px 489px;
  gap: 8px;
  border-radius: 4px 0px 0px 0px;
  font-family: PingFang SC;
  font-size: 16px;
  font-weight: 400;
  line-height: 16px;
  text-align: left;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  box-sizing: border-box;
  text-wrap: nowrap;

  .header_title_img {
    width: 16px;
    height: 16px;
  }
}
</style>
